package user.com.utils;

import user.com.entity.Dto.UserLoginDto;

public class UserInfoUtils {

    private static ThreadLocal<UserLoginDto> threadLocal = new ThreadLocal<>();


    public static UserLoginDto getUserInfo(){
        return threadLocal.get();
    }

    public static void remove(){
        threadLocal.remove();
    }

    public static void add(UserLoginDto value){
        threadLocal.set(value);
    }
}
